<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h2>Credits list</h2>

<a href="businessman.htm?act=newcredit">Ask for new credit</a>
<br/><br/>

<table style="width: 600px;">
    <tr>
        <td>
            id
        </td>
        <td>
            Bank
        </td>
        <td>
            Amount
        </td>
        <td>
            Created
        </td>
        <td>
            Status
        </td>
    </tr>
    <c:forEach items="${credits}" var="credit">
        <tr>
            <td>
                ${credit.id}
            </td>
            <td>
                ${credit.getBank().getTitle()}
            </td>
            <td>
                ${credit.amount}
            </td>
            <td>
                ${VoidHelper.date(credit.created)}
            </td>
            <td>
                ${credit.status}
            </td>
        </tr>
    </c:forEach>
</table>